package com.db.gallery

class ProjectGroup {
	
	static hasMany = [projects: Project]
	static mappedBy = [projects: "projectGroup"]
	
	ProjectGroup(def aName) {
		name = aName
	}
	
	String name
	
	static mapping = {
		projects sort: 'id', order: 'desc'
	}

    static constraints = {
    }
	
}
